home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global gPlaySound, audioPath, gCurrLabel, gTourForwardArrow, gTourBackArrow
- if the frameLabel <> 0 then
- gCurrLabel = the frameLabel
- end if
- if gPlaySound then
- gPlaySound = 0
- frameNum = the frame
- soundFile = getAudioFile(frameNum)
- sound playFile 1, audioPath & soundFile & ".AIF"
- end if
- Inscope(gTourForwardArrow)
- Inscope(gTourBackArrow)
- end
-
- on exitFrame
- global goOn, firstTime, gMenuButton, gMenuExit, gPlaySound, gTourForwardArrow, gTourBackArrow
- repeat with rc in [gMenuButton, gMenuExit, gTourForwardArrow, gTourBackArrow]
- doRollover(rc)
- end repeat
- if soundBusy(1) then
- go(the frame)
- else
- repeat with z = 2 to 10
- if not (the memberNum of sprite z = 0) then
- sprite(z).visible = 1
- updateStage()
- end if
- end repeat
- gPlaySound = 1
- goOn = 0
- firstTime = 1
- go(#next)
- end if
- end
-